#include <iostream>

int main() {
    int x;
    scanf("%d",&x);
    while (x>0){
        for (int i = 1; i <= x; ++i) {
            printf("%d",i);
        }
        printf("\n");
        scanf("%d", &x);
    }
    return 0;
}
